Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a sizable equivalent type #417

Merged

Conversation

tomasreimers
Copy link
Contributor

Background

I'm trying to extend pg-mem to support pgvector, a popular library that's used for vector similarity search.

The core feature of pgvector is a new column type "vector".

Unfortunately, given the current API for pg-mem, I don't believe there is any way to implement vector (which is a sizable custom type).

What this pull request does

This pull request implements a new "registerEquivalentSizableType" that allows you to implement "vector".

I'm not sure if this is the best way to implement this, so very open to feedback :)

@oguimbal oguimbal merged commit d735d7b into oguimbal:master Oct 11, 2024
@oguimbal
Copy link
Owner

Thanks ! released in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants